import { ICircle } from "../../util/Defined";
import { TypeUtil } from "../../util/TypeUtil";
import { Vec2 } from "./Vec2";

/**
 * 圆形
 */
export class Circle extends Vec2 implements ICircle {

    /** 零点 */
    static readonly ZERO = TypeUtil.readonlyType(new Circle(0, 0, 0));
    /** 临时变量 */
    static readonly T = new Circle();
    /** 临时变量 */
    static readonly T2 = new Circle();
    /** 临时变量 */
    static readonly T3 = new Circle();
    /** 临时变量 */
    static readonly T4 = new Circle();
    /** 临时变量 */
    static readonly T5 = new Circle();

    constructor(
        x = 0, y = 0,
        public radius = 0,) {
        super(x, y);
    }

}